package com.lpl.mapper;

import com.lpl.polo.user;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface loginma {

//    查询用户
    @Select("select * from user where id=#{openid}")
    user selectUser(String openid);
    //登录
    @Insert("INSERT INTO user (id) VALUES (#{openid})")
    int daologin(String openid);
}
